package demo.controller;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import demo.dao.IAddressDao;
import demo.model.Address;

@RestController
@RequestMapping("address")
public class AddressController {

	@Resource
	private IAddressDao dao;
	
	@RequestMapping("findAddressById.do")
	public Address findAddressById(Integer id){
		return dao.findById(id);
	}
}
